package com.zangbuge.hellonacos.feign;

import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Li Huiming
 * @date 2021/12/26
 */

@RequestMapping
@FeignClient("nacos-service")
@ResponseBody
@Headers({
        "Content-Type: " + MediaType.APPLICATION_JSON_VALUE
})
public interface TestFeign {

    @RequestMapping("/test")
    String test();

}
